<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" type="text/css" href="https://unpkg.com/spencer-css" />
</head>

<body>
  <div class="m4">
    client-side test for <a href="https://github.com/spencermountain/wtf_wikipedia">wtf_wikipedia</a>
  </div>

  <div class="m2">
    <div>Raptors Coach:</div>
    <b class="m2" id="module">loading...</b>
  </div>
  <!-- test es-module -->
  <script type="module">
    import wtf from '../builds/wtf_wikipedia-client.mjs'
    wtf.fetch('Toronto Raptors').then(doc => {
      let coach = doc.infobox().get('coach')
      document.querySelector('#module').innerHTML = coach.text() //'Nick Nurse'
    })
  </script>
</body>

</html>